 @extends('layouts.admin_common') @section('content')

     @if(app('env')=='production')
         <script src="{{ secure_asset('/js/sy_common.js') }}"></script>
     @else
         <script src="{{ asset('/js/sy_common.js') }}"></script>
     @endif
<div class="breadcrumbs_container">{{
	Breadcrumbs::render('admin.invoice_list') }}</div>
<div class="system_tab_line"></div>

<div class="lyx_search_table">
    <form>
        <div class="row">
            <div class="form-group row col-sm-4">
                <label for="inputPassword" class="col-sm-4 col-form-label">@lang('symessages.info.company_name')</label>
                <div class="col-sm-8">
                    <select class="form-control" name="corp_id">
                        <option value="">@lang('symessages.info.all_msg')</option>
                        @foreach ($corpList as $sh)
                            <option
                                value="{{$sh->corp_id}}" <?php is_selected($sh->corp_id, $param, 'corp_id') ?> >{{$sh->corp_name}}</option>
                        @endforeach
                    </select>
                </div>
            </div>


            <div class="form-group row col-sm-4">
                <label for="inputPassword" class="col-sm-4 col-form-label">請求日</label>
                <div class="col-sm-8">
                    <input class="form-control lyx_datetimepicker" type="text" @isset($param['star_date']) value="{{$param['star_date']}}"  @endisset name="star_date">
                </div>
            </div>

            <div class="form-group row col-sm-3">
                <label for="inputPassword" class="col-sm-1 col-form-label">~</label>
                <div class="col-sm-8">
                    <input class="form-control lyx_datetimepicker" type="text" @isset($param['end_date']) value="{{$param['end_date']}}" @endisset name="end_date">
                </div>
            </div>
        </div>

        {{--<div class="row">--}}
            {{--<div class="form-check form-check-inline">--}}
                {{--<label for="inputPassword" class="col-sm-10 col-form-label">出荷残のみ</label>--}}
                {{--<div class="col-sm-4">--}}
                    {{--<input class="form-check-input" type="checkbox" value="" id="defaultCheck1">--}}
                {{--</div>--}}
            {{--</div>--}}

        {{--</div>--}}

        <div class="row">
            <div class="col-sm-6"></div>
            <div class="col-sm-3">
                <button class="btn btn-primary button_normal">検索</button>
            </div>
        </div>

    </form>


    <div class="lyx_table">

        <table class="table table-bordered">
            <thead>
            <tr>
                <th scope="col">@lang('symessages.info.order_date')</th>
                <th scope="col">@lang('symessages.info.company_name')</th>
                <th scope="col">@lang('symessages.info.company_shop')</th>
                <th scope="col">@lang('symessages.info.order_code')</th>
                <th scope="col">@lang('symessages.info.order_goods_num')</th>
                <th scope="col">@lang('symessages.info.total_money')</th>
                <th scope="col">@lang('symessages.ajax_data.courier_number')</th>

            </tr>
            </thead>
            <tbody>
                @foreach ($list as $k=>$val)
            <tr>
                <td>{{$val->create_time}}</td>
                <td>{{fun_corp($val->corp_id)}}</td>
                <td>{{fun_shop($val->shop_id)}}</td>
                <td><a href="invoice_detail?order_id={{$val->order_id}}">{{$val->order_id}}</a></td>
                <td>{{$val->total_num}}</td>
                <td>{{$val->money}}</td>
                <td>{{$val->courier_number}}</td>
            </tr>
            @endforeach
            </tbody>
        </table>
    </div>

</div>


@endsection

